#ifndef TEACHERINFO_H
#define TEACHERINFO_H

#include <QString>

class TeacherInfo
{
public:
    TeacherInfo();
    TeacherInfo(const QString &id, const QString &teacherID,
       const QString &XID, const QString &Name,const QString
                &Sex, const QString &Birth, const QString &pswd);
    ~TeacherInfo();

    void display() const;
    void updateTeacherInfo(const TeacherInfo &info);
    void updateTeacherInfo(const QString &id, const QString &teacherID,
                           const QString &XID, const QString &Name,const QString
                                    &Sex, const QString &Birth, const QString &pswd);

    void setID(const QString &id);
    const QString &getID() const;
    void setteacherID(const QString &teacherID);
    const QString &getteacherID() const;
    void setXID(const QString &XID);
    const QString &getXID() const;
    void setName(const QString &Name);
    const QString &getName() const;
    void setBirth(const QString &Birth);
    const QString &getBirth() const;
    void setSex(const QString &Sex);
    const QString &getSex() const;
    void setpswd(const QString &pswd);
    const QString &getpswd() const;

private:
    QString m_id;
    QString m_teacherID;
    QString m_XID;
    QString m_Name;
    QString m_Sex;
    QString m_pswd;
    QString m_Birth;
};

typedef QList<TeacherInfo> ListTeacherInfo;

#endif // TEACHERINFO_H
